//
//  ShoppingTableViewCell.swift
//  许鲜
//
//  Created by hbl on 16/4/28.
//  Copyright © 2016年 hbl. All rights reserved.
//

import UIKit

class ShoppingTableViewCell: UITableViewCell {

    @IBOutlet weak var photo: UIImageView!
    @IBOutlet weak var name: UILabel!
    @IBOutlet weak var price: UILabel!
    @IBOutlet weak var number: UILabel!
    var numberString:String?{
        didSet{
            number.text = numberString
        }
    }
    var goodsMode:GoodsModel?{
        didSet{
            photo.yy_setImageWithURL(NSURL(string: (goodsMode?.icon)!), placeholder: nil)
            name.text = goodsMode?.title
            price.text = goodsMode!.laouser
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        name.font = UIFont.systemFontOfSize(14)
        
        price.font = UIFont.systemFontOfSize(18, weight: 0.8)
        price.textColor = UIColor.orangeColor()
        
        number.textColor = UIColor.lightGrayColor()
        number.font = UIFont.systemFontOfSize(12)
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
